package com.aimao.blog.pojo;

import java.io.Serializable;

public class Subject implements Serializable {
    private Integer id;

    private String title;

    private String detail;

    private String mainimg;

    private Long articlecount;

    private Boolean top;

    private String articlelist;

    public Subject(Integer id, String title, String detail, String mainimg, Long articlecount, Boolean top, String articlelist) {
        this.id = id;
        this.title = title;
        this.detail = detail;
        this.mainimg = mainimg;
        this.articlecount = articlecount;
        this.top = top;
        this.articlelist = articlelist;
    }

    public Subject() {
        super();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title == null ? null : title.trim();
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail == null ? null : detail.trim();
    }

    public String getMainimg() {
        return mainimg;
    }

    public void setMainimg(String mainimg) {
        this.mainimg = mainimg == null ? null : mainimg.trim();
    }

    public Long getArticlecount() {
        return articlecount;
    }

    public void setArticlecount(Long articlecount) {
        this.articlecount = articlecount;
    }

    public Boolean getTop() {
        return top;
    }

    public void setTop(Boolean top) {
        this.top = top;
    }

    public String getArticlelist() {
        return articlelist;
    }

    public void setArticlelist(String articlelist) {
        this.articlelist = articlelist == null ? null : articlelist.trim();
    }
}